package org.jeecg.modules.htxincailiao.forums.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ht_forums_expert_works
 * @Author: jeecg-boot
 * @Date:   2022-07-19 10:06:15
 * @Version: V1.0
 */
@Data
@TableName("ht_forums_expert_works")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ht_forums_expert_works对象", description="ht_forums_expert_works")
public class HTForumsExpertWorks implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**问答专家ID*/
	@Excel(name = "问答专家ID", width = 15, dictTable = "ht_forums_expert", dicText = "phone_number", dicCode = "id")
	@Dict(dictTable = "ht_forums_expert", dicText = "phone_number", dicCode = "id")
    @ApiModelProperty(value = "问答专家ID")
    private String forumsExpertId;
	/**分类ID*/
	@Excel(name = "分类ID", width = 15, dictTable = "ht_forums_category", dicText = "name", dicCode = "id")
	@Dict(dictTable = "ht_forums_category", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "分类ID")
    private String forumsCategoryId;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private Integer sort;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String name;
	/**副标题*/
	@Excel(name = "副标题", width = 15)
    @ApiModelProperty(value = "副标题")
    private String subname;
	/**主图*/
	@Excel(name = "主图", width = 15)
    @ApiModelProperty(value = "主图")
    private String cover;
	/**详细描述*/
	@Excel(name = "详细描述", width = 15)
    @ApiModelProperty(value = "详细描述")
    private String content;
	/**状态：0-未审核 1-审核中 2-已通过 3-已驳回*/
	@Excel(name = "状态：0-未审核 1-审核中 2-已通过 3-已驳回", width = 15, dicCode = "audit_status")
	@Dict(dicCode = "audit_status")
    @ApiModelProperty(value = "状态：0-未审核 1-审核中 2-已通过 3-已驳回")
    private Integer auditStatus;
	/**审批意见*/
	@Excel(name = "审批意见", width = 15)
    @ApiModelProperty(value = "审批意见")
    private String auditComments;
	/**逻辑删除：0-未删除,1-删除。*/
	@Excel(name = "逻辑删除：0-未删除,1-删除。", width = 15)
    @ApiModelProperty(value = "逻辑删除：0-未删除,1-删除。")
    private Integer isDeleted;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    /**问答专家姓名*/
    @TableField(exist = false)
    @ApiModelProperty(value = "专家姓名")
    private String forumsExpertRealName;

    /**问答专家手机号*/
    @TableField(exist = false)
    @ApiModelProperty(value = "专家手机号")
    private String forumsExpertPhoneNumber;

    @TableField(exist = false)
    private Integer pageNo=1;

    @TableField(exist = false)
    private Integer pageSize=10;
}
